<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    public function _initRequest() {
        //ob_end_flush();
        $appFile = APPLICATION_PATH . '/configs/application.ini';
        try {
            //Start session
            Zend_Session::start();
            
            $config = new Zend_Config_Ini($appFile, 'staging', $options);
            $db = Zend_Db::factory($config->database);
            Zend_Registry::set('db', $db);
        }
        catch (Zend_Exception $e) {
        }
    }
}

